import requests
# 方法一：
# resp = requests.get(url="http://127.0.0.1/index.php?m=Home&c=Goods&a=getRegion"
#                     ,params={"q":"iphone"})

# 方法二：
resp = requests.get(url="http://127.0.0.1/index.php/Home/Goods/search.html?q=iphone")

# 查询响应结果
print(resp.text)